package com.shan.rest.model;

import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * Author: shanzheng <br/>
 * Description: <br/>
 * Date： 18:22 2017/9/25.<br/>
 * Modified By: <br/>
 */
@XmlRootElement
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    private long id;
    private String userName;
    private String password;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
